﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlaceOrder_Shared.Helpers
{
    /// <summary>
    /// 根据usertradebondhelper表里的status对应不同的关系
    /// </summary>
    public static class TradeStatusHelper
    {
        public static string GetStatusText(int status)
        {
            switch (status)
            {
                case 0:
                case 1:
                    return "已接收";
                case 3:
                    return "已成交";
                case 4:
                    return "部分成交";
                case 5:
                    return "已撤单";
                case 6:
                    return "部分撤单";
                case 9:
                    return "待确认";
                case 13:
                    return "已作废";
                default:
                    return "已完成";
            }
        }
    }
}
